package coap.messages;

public class MediaType {
	public static final int text = 0;
	public static final int linkformat = 40;
	public static final int xml = 41;
	public static final int octetstream = 42;
	public static final int exi = 47;
	public static final int json = 50;
	
	public static String getString(int value){
		switch(value){
		case text:
			return "text/plain; charset=utf-8";
		case linkformat:
			return "application/link-format";
		case xml:
			return "application/xml";
		case octetstream:
			return "application/octet-stream";
		case exi:
			return "application/exi";
		case json:
			return "application/json";
		default:
			return "Unknown";
		}
	}

}
